home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15634 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  40 lines

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Q:I just don't understand why...
  5. Date: 20 Apr 1996 09:24 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <20APR199609241258@erich.triumf.ca>
  9. References: <31776412.5F2A@mh1.hh.se>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <31776412.5F2A@mh1.hh.se>, "WeckstΘn, Mattias" <d95w@mh1.hh.se> writes...
  14.  
  15. >editfont   = guip_initfont(object, editfontstring);
  16. >generates a 
  17.  
  18. >"editfield.c", line 181: warning: improper pointer/integer combination: op "="
  19.  
  20. It would seem that the compiler thinks editfont is a pointer, and the return
  21. value of guip_initfont() is an integer, or vice versa.
  22.  
  23. Do you have a prototype for guip_initfont() in scope (probably by #including
  24. the appropriate header at the head of this source file.)  Without a prototype,
  25. the compiler will assume the function returns an int.
  26.  
  27. Since this is not a standard function, we can't make any definite comments
  28. without seeing a little more code, including the declaration of "editfont", ant
  29. prototype for guip_initfont().
  30.  
  31.  
  32. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  33. Internet: bennett@triumf.ca         | of one another only when one can be
  34. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  35. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  36. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  37. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  38. or: http:://vancouver-webpages.com/peter/index.html
  39.  
  40.